import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/roles_list',
    method: 'get',
    params,
  })
}
export function doDelete(params) {
  return request({
    url: '/roles_delete',
    method: 'get',
    params,
  })
}

export function doEdit(data) {
  return request({
    url: '/roles_edit',
    method: 'post',
    data,
  })
}

export function getPermission(params) {
  return request({
    url: '/role_permissions',
    method: 'get',
    params,
  })
}
